Function Reference
ApplicationBaseHelpURI
Application base help URI.
Syntax:
wwenv:ApplicationBaseHelpURI()Returns:
string: A string.ApplicationVersion
Full version of application.
Syntax:
wwenv:ApplicationVersion()Returns:
string: String formatted as 'Major.Minor.Build'.Example:
<xsl:variable name="VarVersion" select="wwenv:ApplicationVersion()" />
<meta name="generator" content="ePublisher {$VarVersion}" />ApplicationVersionBuild
Build number of application.
Syntax:
wwenv:ApplicationVersionBuild()Returns:
string: String formatted as 'Build'.ApplicationVersionMajor
Major version of application.
Syntax:
wwenv:ApplicationVersionMajor()Returns:
string: String formatted as 'Major'.ApplicationVersionMinor
Minor version of application.
Syntax:
wwenv:ApplicationVersionMinor()Returns:
string: String formatted as 'Minor'.CurrentUILocale
Current user interface locale.
Syntax:
wwenv:CurrentUILocale()Returns:
string: A string.Example:
<xsl:variable name="VarLocale" select="wwenv:CurrentUILocale()" />
<xsl:if test="starts-with($VarLocale, 'en')">
<p>English content here</p>
</xsl:if>GetTotalMemory
Reports the total amount of memory used by the running process. Useful for optimizing XSL to reduce memory usage.
Syntax:
wwenv:GetTotalMemory($forceFullCollection)Parameters:
Name | Type | Description |
|---|---|---|
forceFullCollection | bool | True to force full collection. |
Returns:
long: The total memory in bytes.Example:
<xsl:variable name="VarMemory" select="wwenv:GetTotalMemory(false())" />
<xsl:variable name="VarLogResult" select="wwlog:Message(concat('Memory usage: ', $VarMemory, ' bytes'))" />HTMLHelpWorkshopPath
HTML help workshop path.
Syntax:
wwenv:HTMLHelpWorkshopPath()Returns:
string: A string.Example:
<xsl:variable name="VarHHWPath" select="wwenv:HTMLHelpWorkshopPath()" />
<xsl:variable name="VarHHCExe" select="wwfilesystem:Combine($VarHHWPath, 'hhc.exe')" />JavaBits
Gets latest version of either JDK pr JRE bits stored in registry.
Syntax:
wwenv:JavaBits()Returns:
string: The JDK/JRE bits string stored in registry.JavaHome
Gets latest version of either JDK or JRE home directory path.
Syntax:
wwenv:JavaHome()Returns:
string: JDK/JRE home directory path string.Example:
<xsl:variable name="VarJavaHome" select="wwenv:JavaHome()" />
<xsl:variable name="VarJavaExe" select="wwfilesystem:Combine($VarJavaHome, 'bin', 'java.exe')" />JavaVersion
Gets latest version of either the JDK or JRE version stored in registry.
Syntax:
wwenv:JavaVersion()Returns:
string: JDK/JRE version string stored in registry.JDKBits
Gets Java Development Kit (JDK) bits stored in registry.
Syntax:
wwenv:JDKBits()Returns:
string: JDK bits string stored in registry.JDKHome
Gets Java Development Kit (JDK) home directory path.
Syntax:
wwenv:JDKHome()Returns:
string: JDK home directory path string.Example:
<xsl:variable name="VarJDKHome" select="wwenv:JDKHome()" />
<xsl:variable name = "VarJarPath" select="wwfilesystem:Combine($VarJDKHome, 'jar')" />
<xsl:variable name = "VarJarCommand" select="wwexec:ExecuteCommand($VarJarPath, 'cvf', 'output.jar', '.')" />JDKVersion
Gets Java Development Kit (JDK) version stored in registry.
Syntax:
wwenv:JDKVersion()Returns:
string: JDK version string stored in registry.JREBits
Gets Java Runtime Environment (JRE) bits stored in registry.
Syntax:
wwenv:JREBits()Returns:
string: The JRE bits string stored in registryJREHome
Gets Java Runtime Environment (JRE) home directory path.
Syntax:
wwenv:JREHome()Returns:
string: JRE home directory path string.JREVersion
Gets Java Runtime Environment (JRE) version stored in registry.
Syntax:
wwenv:JREVersion()Returns:
string: JRE version string stored in registry.Last modified date: 01/12/2026